package willevaluate.activity;

import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.text.Spannable;
import android.text.SpannableString;
import android.text.TextPaint;
import android.text.TextUtils;
import android.text.style.ClickableSpan;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.example.xuegengwang.xuegengwang.R;
import com.google.gson.Gson;

import org.json.JSONException;
import org.json.JSONObject;
import org.xutils.view.annotation.ContentView;
import org.xutils.view.annotation.ViewInject;

import java.io.InputStream;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import common.BaseActivity;
import common.Constant;
import guidePage.LoginPage;
import https.InterNetController;
import in.srain.cube.views.ptr.PtrFrameLayout;
import pay.activity.Pay;
import utils.BitmapUtils;
import view.MyPtrRefresh_LoadView;
import willevaluate.adapter.ExpertEvaluateStatusAdapter;
import willevaluate.bean.ExpertEvaluateBean;
import willevaluate.bean.ExpertEvaluateQuestionListBean;
import willevaluate.model.ExpertEvaluateInfoModel;
import willevaluate.model.ExpertEvaluateInfoModelBuilder;


/**
 * Created by Administrator on 2017/5/15.
 * 3800/5800//8800 块钱的  专家预测+个人信息
 */
@ContentView(R.layout.expert_evaluate)
public class ExpertEvaluate extends BaseActivity implements View.OnClickListener {
    @ViewInject(R.id.common_back)
    private ImageView common_back;
    @ViewInject(R.id.common_title)
    private TextView common_title;
    @ViewInject(R.id.expert_evaluate_complete_layout)
    private LinearLayout expert_evaluate_complete_layout;//完善个人信息页面
    @ViewInject(R.id.expert_evaluate_name)
    private EditText expert_evaluate_name;
    @ViewInject(R.id.expert_evaluate_no)
    private EditText expert_evaluate_no;
    @ViewInject(R.id.expert_evaluate_type_group)
    private RadioGroup expert_evaluate_type_group;
    @ViewInject(R.id.expert_evaluate_count)
    private EditText expert_evaluate_count;
    @ViewInject(R.id.expert_evaluate_rank)
    private EditText expert_evaluate_rank;
    @ViewInject(R.id.expert_evaluate_tel)
    private EditText expert_evaluate_tel;
    @ViewInject(R.id.expert_evaluate_email)
    private EditText expert_evaluate_email;
    @ViewInject(R.id.expert_evaluate_commit)
    private Button expert_evaluate_commit;
    @ViewInject(R.id.expert_evaluate_status_lv)
    private ListView expert_evaluate_status_lv;//状态列表
    @ViewInject(R.id.expert_evaluate_status_refreshLayout)
    private MyPtrRefresh_LoadView expert_evaluate_status_refreshLayout;
    @ViewInject(R.id.expert_evaluate_status_layout)
    private LinearLayout expert_evaluate_status_layout;

    @ViewInject(R.id.expert_evaluate_pay_ima_layout)
    private LinearLayout expert_evaluate_pay_ima_layout;
    @ViewInject(R.id.expert_evaluate_pay_layout)
    private RelativeLayout expert_evaluate_pay_layout;//支付页面
    @ViewInject(R.id.expert_evaluate_pay_item1)
    private LinearLayout expert_evaluate_pay_item1;//2500
    @ViewInject(R.id.expert_evaluate_pay_item2)
    private LinearLayout expert_evaluate_pay_item2;//5000
    @ViewInject(R.id.expert_evaluate_pay_item3)
    private LinearLayout expert_evaluate_pay_item3;
    @ViewInject(R.id.expert_evaluate_pay_item4)
    private RelativeLayout expert_evaluate_pay_item4;//使用今朝志愿填报卡

    private ExpertEvaluateStatusAdapter expertEvaluateStatusAdapter;
    private List<ExpertEvaluateQuestionListBean.ListBean> questionList;

    private View expert_evaluate_status_header;//头布局
    private TextView expert_evaluate_status_header_status;//状态
    private TextView expert_evaluate_status_header_time;//时间

    @ViewInject(R.id.expert_evaluate_commit_message)
    private Button expert_evaluate_commit_message;//问问题
    @ViewInject(R.id.expert_evaluate_reSetOrder)
    private Button expert_evaluate_reSetOrder;//修改订单

    private String orderid = "";
    private String status = "";//订单状态
    private String notice = "";//提示
    private String update_time = "";//更新时间
    private int page = 1;

    private final int LOGIN_REQUEST = 10;

    private MyHandler1 handler;

    private final static int SUBMIT_INFO = 0;
    private final static int QU_MSGLIST = 1;
    private final static int MODIFY_QUESTION = 2;

    private ExpertEvaluateInfoModel expertEvaluateInfoModel;
    private ExpertEvaluateInfoModelBuilder expertEvaluateInfoModelBuilder;
    private ExpertEvaluateBean expertEvaluateBean;

    private static class MyHandler1 extends Handler {
        WeakReference<ExpertEvaluate> weakReference;

        public MyHandler1(ExpertEvaluate expertEvaluate) {
            this.weakReference = new WeakReference<>(expertEvaluate);
        }

        @Override
        public void handleMessage(Message msg) {
            ExpertEvaluate expertEvaluate = weakReference.get();
            super.handleMessage(msg);
            switch (msg.what) {
                case Constant.ERROR_CODE_SUCCESS://成功返回
                    switch (msg.arg1) {
                        case SUBMIT_INFO:
                            try {
                                JSONObject jsonObject = new JSONObject(String.valueOf(msg.obj));
                                String err_code = jsonObject.getString("err_code");
                                if ("0".equals(err_code)) {
                                    //提交成功
                                    Intent intent = new Intent(expertEvaluate, Questionnaire.class);
                                    intent.putExtra("subject", expertEvaluate.expertEvaluateInfoModel.getType());
                                    intent.putExtra("orderid", expertEvaluate.orderid);
                                    intent.putExtra("expertEvaluateBean", expertEvaluate.expertEvaluateBean);
                                    expertEvaluate.startActivity(intent);
                                }
                            } catch (JSONException e) {
                                e.printStackTrace();
                            }
                            break;
                        case QU_MSGLIST:
                            //获取问题列表
                            Gson gson = new Gson();
                            ExpertEvaluateQuestionListBean questionListBean = gson.fromJson((String) msg.obj, ExpertEvaluateQuestionListBean.class);
                            if (questionListBean != null) {
                                List<ExpertEvaluateQuestionListBean.ListBean> list = questionListBean.getList();
                                if (list != null) {
                                    if (list.size() > 0) {
                                        if (expertEvaluate.page == 1) {
                                            expertEvaluate.questionList.clear();
                                        }
                                        for (int i = 0; i < list.size(); i++) {
                                            expertEvaluate.questionList.add(list.get(i));
                                        }
                                    } else {
                                        expertEvaluate.page--;
                                    }
                                    expertEvaluate.expertEvaluateStatusAdapter.notifyDataSetChanged();
                                }
                            }
                            break;
                        case MODIFY_QUESTION:
                            //重新获取订单所有信息，用于修改
                            Gson gson1 = new Gson();
                            expertEvaluate.expertEvaluateBean = gson1.fromJson((String) msg.obj, ExpertEvaluateBean.class);
                            if (expertEvaluate.expertEvaluateBean != null) {
                                //更新第一页
                                expertEvaluate.expertEvaluateInfoModel = expertEvaluate.expertEvaluateBean.getOrderDetails();
                                if (expertEvaluate.expertEvaluateInfoModel != null) {
                                    expertEvaluate.expert_evaluate_name.setText(expertEvaluate.expertEvaluateInfoModel.getName());
                                    expertEvaluate.expert_evaluate_name.setSelection(expertEvaluate.expertEvaluateInfoModel.getName().length());
                                    expertEvaluate.expert_evaluate_count.setText(expertEvaluate.expertEvaluateInfoModel.getCount());
                                    expertEvaluate.expert_evaluate_email.setText(expertEvaluate.expertEvaluateInfoModel.getEmail());
                                    expertEvaluate.expert_evaluate_no.setText(expertEvaluate.expertEvaluateInfoModel.getExam_no());
                                    expertEvaluate.expert_evaluate_rank.setText(expertEvaluate.expertEvaluateInfoModel.getRank());
                                    expertEvaluate.expert_evaluate_tel.setText(expertEvaluate.expertEvaluateInfoModel.getTel());
                                    if ("理科".equals(expertEvaluate.expertEvaluateInfoModel.getType())) {
                                        ((RadioButton) expertEvaluate.findViewById(R.id.expert_evaluate_type_science)).setChecked(true);
                                    } else {
                                        ((RadioButton) expertEvaluate.findViewById(R.id.expert_evaluate_type_art)).setChecked(true);
                                    }
                                }
                            }
                            //显示修改个人信息布局
                            expertEvaluate.expert_evaluate_status_layout.setVisibility(View.GONE);
                            expertEvaluate.expert_evaluate_complete_layout.setVisibility(View.VISIBLE);
                            expertEvaluate.expert_evaluate_pay_layout.setVisibility(View.GONE);
                            expertEvaluate.common_title.setText("填写个人信息");
                            break;
                        default:
                            break;
                    }
                    break;
                case Constant.ERROR_CODE_FINISH:
                    expertEvaluate.expert_evaluate_status_refreshLayout.OnRefreshComplete();
                    break;
                default:
                    break;
            }
        }
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ActivityController.addActivity(this);
        expertEvaluateInfoModelBuilder = new ExpertEvaluateInfoModelBuilder();
        handler = new MyHandler1(this);
        HashMap<String, String> hashMap = (HashMap<String, String>) getIntent().getSerializableExtra("params");
        if (hashMap != null) {
            if (hashMap.get("orderid") != null) {
                orderid = hashMap.get("orderid");
            }
            if (hashMap.get("status") != null) {
                status = hashMap.get("status");
            }
            if (hashMap.get("notice") != null) {
                notice = hashMap.get("notice");
            }
            if (hashMap.get("update_time") != null) {
                update_time = hashMap.get("update_time");
            }
        }
        initView();
    }

    @Override
    protected void onNewIntent(Intent intent) {
        super.onNewIntent(intent);
        ActivityController.addActivity(this);
        expertEvaluateInfoModelBuilder = new ExpertEvaluateInfoModelBuilder();
        handler = new MyHandler1(this);
        HashMap<String, String> hashMap = (HashMap<String, String>) intent.getSerializableExtra("params");
        if (hashMap != null) {
            if (hashMap.get("orderid") != null) {
                orderid = hashMap.get("orderid");
            }
            if (hashMap.get("status") != null) {
                status = hashMap.get("status");
            }
            if (hashMap.get("notice") != null) {
                notice = hashMap.get("notice");
            }
            if (hashMap.get("update_time") != null) {
                update_time = hashMap.get("update_time");
            }
        }
        initView();
    }

    private void initView() {
        common_title.setText("志愿填报");
        common_back.setOnClickListener(this);
        expert_evaluate_commit.setOnClickListener(this);
        expert_evaluate_pay_item1.setOnClickListener(this);
        expert_evaluate_pay_item2.setOnClickListener(this);
        expert_evaluate_pay_item3.setOnClickListener(this);
        expert_evaluate_pay_item4.setOnClickListener(this);
        expert_evaluate_commit_message.setOnClickListener(this);
        expert_evaluate_reSetOrder.setOnClickListener(this);
        if (expert_evaluate_status_header == null) {
            expert_evaluate_status_header = LayoutInflater.from(this).inflate(R.layout.expert_evaluate_status_header, null);
        }
        expert_evaluate_status_header_status = (TextView) expert_evaluate_status_header.findViewById(R.id.expert_evaluate_status_header_status);
        expert_evaluate_status_header_time = (TextView) expert_evaluate_status_header.findViewById(R.id.expert_evaluate_status_header_time);
        expert_evaluate_status_header_status.setText(notice);
        expert_evaluate_status_header_time.setText(update_time);
        expert_evaluate_status_header.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                if ("0".equals(status)) {
                    //继续完善订单
                    expert_evaluate_status_layout.setVisibility(View.GONE);
                    expert_evaluate_complete_layout.setVisibility(View.VISIBLE);
                    expert_evaluate_pay_layout.setVisibility(View.GONE);
                    common_title.setText("填写个人信息");
                }
            }
        });
        expertEvaluateInfoModelBuilder.setType("文科");
        expert_evaluate_type_group.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, int checkedId) {
                int checkedRadioButtonId = group.getCheckedRadioButtonId();
                switch (checkedRadioButtonId) {
                    case R.id.expert_evaluate_type_art:
                        expertEvaluateInfoModelBuilder.setType("文科");
                        break;
                    case R.id.expert_evaluate_type_science:
                        expertEvaluateInfoModelBuilder.setType("理科");
                        break;
                    default:
                        break;
                }
            }
        });
        if (questionList == null) {
            questionList = new ArrayList<>();
        } else {
            questionList.clear();
        }
        if (expert_evaluate_status_lv.getHeaderViewsCount() == 0) {
            expert_evaluate_status_lv.addHeaderView(expert_evaluate_status_header);
        }
        if (expertEvaluateStatusAdapter == null) {
            expertEvaluateStatusAdapter = new ExpertEvaluateStatusAdapter(this, questionList);
            expert_evaluate_status_lv.setAdapter(expertEvaluateStatusAdapter);
        }
        expert_evaluate_status_lv.setOnItemClickListener(new AdapterView.OnItemClickListener() {
            @Override
            public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
                //查看问题详情
                Intent i = new Intent(ExpertEvaluate.this, ExpertEvaluateQuestionDetail.class);
                i.putExtra("questionDetail", questionList.get(position - 1));
                startActivity(i);
            }
        });
        expert_evaluate_status_refreshLayout.initListCount();
        expert_evaluate_status_refreshLayout.setMyPtrHandler(new MyPtrRefresh_LoadView.MyPtrHandler() {
            @Override
            public void onLoadMoreBegin(PtrFrameLayout frame) {
                getQuestionList(++page);
            }

            @Override
            public void onRefreshBegin(PtrFrameLayout frame) {
                getQuestionList(page = 1);
            }
        });
        getQuestionList(page = 1);
        updateStatus(status);

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.common_back:
                this.finish();
                break;
            case R.id.expert_evaluate_commit:
                expertEvaluateInfoModelBuilder.setName(expert_evaluate_name.getText().toString());
                expertEvaluateInfoModelBuilder.setExam_no(expert_evaluate_no.getText().toString());
                expertEvaluateInfoModelBuilder.setCount(expert_evaluate_count.getText().toString());
                expertEvaluateInfoModelBuilder.setRank(expert_evaluate_rank.getText().toString());
                expertEvaluateInfoModelBuilder.setEmail(expert_evaluate_email.getText().toString());
                expertEvaluateInfoModelBuilder.setTel(expert_evaluate_tel.getText().toString());
                expertEvaluateInfoModel = expertEvaluateInfoModelBuilder.createExpertEvaluateInfoModel();
                expertEvaluateInfoModel.submitInfo(this, orderid, handler, SUBMIT_INFO);
                break;
            case R.id.expert_evaluate_pay_item1:
                //3800
                if (hasLoad()) {
                    pay(Constant.SUBMIT_PRICE_3800);
                } else {
                    Intent i = new Intent();
                    i.setClass(this, LoginPage.class);
                    startActivityForResult(i, Constant.LOGIN_REQUEST_CODE);
                    overridePendingTransition(R.anim.zoomin, LOGIN_REQUEST);
                    return;
                }
                break;
            case R.id.expert_evaluate_pay_item2:
                //5800
                if (hasLoad()) {
                    pay(Constant.SUBMIT_PRICE_5800);
                } else {
                    Intent i = new Intent();
                    i.setClass(this, LoginPage.class);
                    startActivityForResult(i, Constant.LOGIN_REQUEST_CODE);
                    overridePendingTransition(R.anim.zoomin, LOGIN_REQUEST);
                    return;
                }
                break;
            case R.id.expert_evaluate_pay_item3:
                //8800
                if (hasLoad()) {
                    pay(Constant.SUBMIT_PRICE_8800);
                } else {
                    Intent i = new Intent();
                    i.setClass(this, LoginPage.class);
                    startActivityForResult(i, Constant.LOGIN_REQUEST_CODE);
                    overridePendingTransition(R.anim.zoomin, LOGIN_REQUEST);
                    return;
                }
                break;
            case R.id.expert_evaluate_pay_item4:
                //使用今朝志愿填报卡
                if (hasLoad()) {
                    Intent i = new Intent(this, Coupon.class);
                    startActivityForResult(i, 0);
                } else {
                    Intent i = new Intent();
                    i.setClass(this, LoginPage.class);
                    startActivityForResult(i, Constant.LOGIN_REQUEST_CODE);
                    overridePendingTransition(R.anim.zoomin, LOGIN_REQUEST);
                    return;
                }
                break;
            case R.id.expert_evaluate_commit_message:
                //提交问题
                Intent i = new Intent(ExpertEvaluate.this, ExpertEvaluateAsk.class);
                i.putExtra("orderid", orderid);
                startActivityForResult(i, 0);
                break;
            case R.id.expert_evaluate_reSetOrder:
                //修改订单
                switch (status) {
                    case "1":
                        //修改个人信息
                        modifyQuestion();
                        break;
                    case "4":
                    default:
                        //修改订单
                        Intent i1 = new Intent(ExpertEvaluate.this, ExpertEvaluateResetOrder.class);
                        i1.putExtra("orderid", orderid);
                        startActivity(i1);
                        break;
                }
                break;
            default:
                break;
        }
    }

    //更新状态
    private void updateStatus(String status) {
        switch (status) {
            case "0":
                //未完成个人信息填写
                expert_evaluate_status_layout.setVisibility(View.VISIBLE);
                expert_evaluate_complete_layout.setVisibility(View.GONE);
                expert_evaluate_pay_layout.setVisibility(View.GONE);
                expert_evaluate_reSetOrder.setVisibility(View.GONE);
                ClickableSpan clickable = new ClickableSpan() {
                    @Override
                    public void updateDrawState(TextPaint ds) {
                        int color = ExpertEvaluate.this.getResources().getColor(R.color.common_color);
                        ds.setColor(color);
                        ds.setUnderlineText(false);
                    }

                    @Override
                    public void onClick(View widget) {

                    }
                };
                SpannableString spannableString = new SpannableString(notice);
                String temp = notice;
                String[] split = temp.split("，");
                if (split != null) {
                    if (split.length > 0) {
                        spannableString.setSpan(clickable, split[0].length() + 1, notice.length(), Spannable.SPAN_INCLUSIVE_EXCLUSIVE);
                        expert_evaluate_status_header_status.setText(spannableString);
                    }
                }
                break;
            case "1":
                //订单已完成,等待客服沟通，这时候用户可以修改订单内容
                expert_evaluate_reSetOrder.setVisibility(View.VISIBLE);
                expert_evaluate_reSetOrder.setText("修改个人信息");
                expert_evaluate_status_layout.setVisibility(View.VISIBLE);
                expert_evaluate_complete_layout.setVisibility(View.GONE);
                expert_evaluate_pay_layout.setVisibility(View.GONE);
                break;
            case "2":
                //沟通
            case "3":
                //已分配
                expert_evaluate_reSetOrder.setVisibility(View.GONE);
                expert_evaluate_status_layout.setVisibility(View.VISIBLE);
                expert_evaluate_complete_layout.setVisibility(View.GONE);
                expert_evaluate_pay_layout.setVisibility(View.GONE);
                break;
            case "4":
                //已完成，是否更改
                expert_evaluate_reSetOrder.setText("申请修改志愿");
                expert_evaluate_reSetOrder.setVisibility(View.VISIBLE);
                expert_evaluate_status_lv.setVisibility(View.VISIBLE);
                expert_evaluate_complete_layout.setVisibility(View.GONE);
                expert_evaluate_pay_layout.setVisibility(View.GONE);
                break;
            case "5":
                //重新提交订单
            case "6":
                //重新已沟通
            case "7":
                //重新已分配
            case "8":
                //最终完成
                expert_evaluate_status_layout.setVisibility(View.VISIBLE);
                expert_evaluate_complete_layout.setVisibility(View.GONE);
                expert_evaluate_pay_layout.setVisibility(View.GONE);
                expert_evaluate_reSetOrder.setVisibility(View.GONE);
                break;
            default:
                expert_evaluate_status_layout.setVisibility(View.GONE);
                expert_evaluate_complete_layout.setVisibility(View.GONE);
                expert_evaluate_pay_layout.setVisibility(View.VISIBLE);
                expert_evaluate_reSetOrder.setVisibility(View.GONE);
                setBitmap();
                break;
        }
    }

    //支付
    private void pay(int price) {
        Intent intent = new Intent(this, Pay.class);
        //还有5000
        intent.putExtra("price", price);
        intent.putExtra("expertEvaluatePay", true);
        intent.putExtra("payType", Constant.SUBMIT);
        startActivityForResult(intent, 0);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        recycleBitmap();
    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        if (resultCode != RESULT_CANCELED) {
            if (requestCode == LOGIN_REQUEST) {
                ExpertEvaluate.this.finish();
                return;
            }
            switch (resultCode) {
                case Constant.PAY_SUCCESS:
                    //支付完成
                    expert_evaluate_status_lv.setVisibility(View.GONE);
                    expert_evaluate_complete_layout.setVisibility(View.VISIBLE);
                    expert_evaluate_pay_layout.setVisibility(View.GONE);
                    common_title.setText("填写个人信息");
                    String orderid = data.getStringExtra("orderid");
                    String out_trade_id = data.getStringExtra("out_trade_id");
                    if (!TextUtils.isEmpty(orderid)) {
                        this.orderid = orderid;
                    } else if (!TextUtils.isEmpty(out_trade_id)) {
                        this.orderid = out_trade_id;
                    }
                    break;
                case 1:
                    //提交问题成功
                    getQuestionList(page = 1);
                    expert_evaluate_status_refreshLayout.initListCount();
                    break;
                default:
                    break;
            }
        }
    }

    private void setBitmap() {
        int[] imas = new int[]{R.mipmap.expert_evaluate_pay_ima1,
                R.mipmap.expert_evaluate_pay_ima2,
                R.mipmap.expert_evaluate_pay_ima3,
                R.mipmap.expert_evaluate_pay_ima4,
                R.mipmap.expert_evaluate_pay_ima5,
                R.mipmap.expert_evaluate_pay_ima6,
                R.mipmap.expert_evaluate_pay_ima7,};

        for (int i = 0; i < expert_evaluate_pay_ima_layout.getChildCount(); i++) {
            InputStream is = getResources().openRawResource(imas[i]);
            Bitmap mBitmap = BitmapFactory.decodeStream(is);
            ((ImageView) expert_evaluate_pay_ima_layout.getChildAt(i)).setImageBitmap(mBitmap);
            ((ImageView) expert_evaluate_pay_ima_layout.getChildAt(i)).setAdjustViewBounds(true);
            ((ImageView) expert_evaluate_pay_ima_layout.getChildAt(i)).setScaleType(ImageView.ScaleType.FIT_XY);
        }
    }

    private void recycleBitmap() {
        for (int i = 0; i < expert_evaluate_pay_ima_layout.getChildCount(); i++) {
            Drawable drawable = ((ImageView) expert_evaluate_pay_ima_layout.getChildAt(i)).getDrawable();
            BitmapUtils.recycleBitmap(drawable);
        }
    }

    private void getQuestionList(int page) {
        HashMap<String, String> hashMap = new HashMap<>();
        hashMap.put("page", String.valueOf(page));
        new InterNetController(this, Constant.QU_MSGLIST, handler, hashMap, QU_MSGLIST, false);
    }

    public void modifyQuestion() {
        HashMap<String, String> hashMap = new HashMap<>();
        hashMap.put("orderid", orderid);
        new InterNetController(this, Constant.MODIFYEVALUATE, handler, hashMap, MODIFY_QUESTION);
    }

}
